package com.gsj.system.service;

import com.gsj.common.pojo.R;
import com.gsj.system.eneity.Role;
import com.gsj.system.pojo.RoleVo;
import com.gsj.system.pojo.RolevoSecond;


import java.util.List;

public interface RoleService {
    public R queryBYuserfRole(Integer userId);

   public R queryAllRole(Integer currentPage, Integer pageSize, RoleVo roleVo);

   public R editRoleStatus(Integer id, Integer status);

   public R queryRoleByRoleId(Integer id);

   public R editRoleByRoleId(Role role, String username);

   public R addNewRole(RolevoSecond role, String username);

   public R deleteRoleByRoleId(Integer roleid);

   public R confirmFenMenu(Integer roleId,List<Integer> roleMenuIds);

    R editUserRole(Integer userId, List<Integer> role);
}
